.class Lcom/baidu/mobads/f/l;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/baidu/mobads/f/k;


# direct methods
.method constructor <init>(Lcom/baidu/mobads/f/k;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    const-string v0, ""

    .line 1
    :try_start_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getURIUitls()Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;

    move-result-object v1

    .line 2
    iget-object v2, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-boolean v2, v2, Lcom/baidu/mobads/f/k;->a:Z

    if-eqz v2, :cond_0

    sget-object v2, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    iget-wide v2, v2, Lcom/baidu/mobads/f/a;->a:D

    goto :goto_0

    :cond_0
    const-wide/16 v2, 0x0

    .line 3
    :goto_0
    iget-object v4, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-boolean v4, v4, Lcom/baidu/mobads/f/k;->a:Z

    .line 4
    new-instance v4, Lcom/baidu/mobads/f/m;

    invoke-direct {v4, p0, v2, v3}, Lcom/baidu/mobads/f/m;-><init>(Lcom/baidu/mobads/f/l;D)V

    .line 5
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    const-string v6, "v"

    .line 6
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v6, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "os"

    const-string v3, "android"

    .line 7
    invoke-virtual {v5, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "tp"

    .line 8
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v3

    .line 9
    invoke-virtual {v3}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object v3

    sget-object v6, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual {v3, v6}, Lcom/baidu/mobads/utils/h;->getTextEncoder(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 10
    invoke-virtual {v5, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "bdr"

    .line 11
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v3

    invoke-virtual {v3}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object v3

    sget-object v6, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    .line 12
    invoke-virtual {v3, v6}, Lcom/baidu/mobads/utils/h;->getTextEncoder(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 13
    invoke-virtual {v5, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 14
    invoke-static {}, Lcom/baidu/mobads/f/g;->j()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v5}, Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;->addParameters(Ljava/lang/String;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v1

    .line 15
    new-instance v2, Lcom/baidu/mobads/openad/d/b;

    invoke-direct {v2, v1, v0}, Lcom/baidu/mobads/openad/d/b;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 16
    iput v0, v2, Lcom/baidu/mobads/openad/d/b;->e:I

    .line 17
    iget-object v0, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-object v0, v0, Lcom/baidu/mobads/f/k;->b:Lcom/baidu/mobads/f/g;

    new-instance v1, Lcom/baidu/mobads/openad/d/a;

    invoke-direct {v1}, Lcom/baidu/mobads/openad/d/a;-><init>()V

    invoke-static {v0, v1}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/openad/d/a;)Lcom/baidu/mobads/openad/d/a;

    .line 18
    iget-object v0, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-object v0, v0, Lcom/baidu/mobads/f/k;->b:Lcom/baidu/mobads/f/g;

    invoke-static {v0}, Lcom/baidu/mobads/f/g;->i(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/openad/d/a;

    move-result-object v0

    const-string v1, "URLLoader.Load.Complete"

    .line 19
    invoke-virtual {v0, v1, v4}, Lcom/baidu/mobads/openad/c/c;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 20
    iget-object v0, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-object v0, v0, Lcom/baidu/mobads/f/k;->b:Lcom/baidu/mobads/f/g;

    invoke-static {v0}, Lcom/baidu/mobads/f/g;->i(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/openad/d/a;

    move-result-object v0

    const-string v1, "URLLoader.Load.Error"

    invoke-virtual {v0, v1, v4}, Lcom/baidu/mobads/openad/c/c;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 21
    iget-object v0, p0, Lcom/baidu/mobads/f/l;->a:Lcom/baidu/mobads/f/k;

    iget-object v0, v0, Lcom/baidu/mobads/f/k;->b:Lcom/baidu/mobads/f/g;

    invoke-static {v0}, Lcom/baidu/mobads/f/g;->i(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/openad/d/a;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/baidu/mobads/openad/d/a;->a(Lcom/baidu/mobads/openad/d/b;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method
